package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author zcp
 * @version v1.0
 * @since v1.0
 */
@Getter
public enum ExportStatusEnum {

    /*
     1,导出失败，2，导出进行中，3，导出成功
     */
    FAIL(1, "enum.exportStatus.memo.fail"),
    EXPORTING(2, "enum.exportStatus.memo.exporting"),
    SUCCESS(3, "enum.exportStatus.memo.success"),
    ;

    private Integer status;

    private String memo;

    ExportStatusEnum(Integer status ,String memo){
        this.status =status;
        this.memo = memo;
    }

    public String getMemo() {
        return I18nMessageUtil.getMessage(memo);
    }
}
